<a name="post<%= post.id %>"></a>
<div class="post">
  <div class="author">
    <div class="name"><%= link_to_user(post.user) %></div>
    <div class="kind"><%=h post.user.kind %></div>
    <% unless post.user.guest? %>
      <div class="post_count"><%= pluralize(post.user.posts.count, 'post') %></div>
    <% end %>
    <% if post.created_at %>
      <div class="created_at"><%= smart_time_ago_in_words(post.created_at) %></div>
    <% end %>
    <% unless post.user.guest? -%>
      <% if post.user.online? -%>
        <span class="online">Online</span>
      <% else -%>
        <span class="offline">Offline</span>
      <% end -%>
    <% end -%>
  </div>
  <div class="content">
    <%= format_post(post.content) %>
    <% unless post.user.signature.blank? %>
      <hr />
      <%= format_post(post.user.signature) %>
    <% end %>
    <% unless post.updated_at == post.created_at %>
      <div class="updated_at">last edited <%= smart_time_ago_in_words(post.updated_at) %></div>
    <% end %>
    <% unless post.new_record? %>
      <div class="actions">
        <%= action_links_for_post(post) %>
      </div>
    <% end %>
    <div class="clear"></div>
  </div>
  <div class="clear"></div>
</div>
